Endpoint: /request/<id>
Returns the html code of a downloaded website. Needs to be uploaded already (see upload/file or upload/url).
Request
URL
Method: GET
/api/request/<id>
Request Parameters
id: ID of the website (required)
Request Body
no request body
Response
Response Elements
id: ID of requested websiteurl: URL of the website, can be nullfileName: file name of the website, can be nullhtml: raw html code of the websitecreatedAt: timestamp of the upload
Examples
Request
GET /api/request/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-type: application/json
Response
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"url": "null",
"fileName": "file.html",
"html":"<!doctype html>...</html>",
"createdAt": "2000-01-01T12:00:00.000Z"
}